<template>
  <el-container style="height: 100%">
    <el-aside width="atuo"><common-aside></common-aside></el-aside>
    <el-container>
      <el-header><common-heade></common-heade></el-header>
      <CommonTags></CommonTags>
      <el-main>
        <!-- <RouterView></RouterView> -->
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import CommonHeade from '../components/CommonHeader.vue'
import CommonAside from '../components/CommonAside.vue'
import CommonTags from '@/components/CommonTags.vue'
// import { RouterView } from 'vue-router'
// import axios from 'axios'
export default {
  components: {
    CommonAside,
    CommonHeade,
    CommonTags,
    // RouterView,
  },
  mounted() {
    /* axios.get('/mock/news').then((res) => {
      // url即在mock.js中定义的
      console.log(res.data) // 打印一下响应数据
    }) */
    /* this.$http.get('/home/getData').then((res) => {
      console.log(res.data)
    }) */
  },
}
</script>

<style lang="scss" scoped>
.el-header {
  background-color: #999;
}
.el-main {
  padding-top: 0;
}
</style>
